package com.fjb.pojo.order;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 订单信息
 * </p>
 *
 * @author hemiao
 * @since 2019-12-22
 */
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 主账号id	
     */
    private Integer mainUserId;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 交货方式  关联交货方式表
     */
    private Integer deliveryModeId;

    /**
     * 商户id 卖家id
     */
    private Integer merchantId;

    /**
     * 总价	
     */
    private BigDecimal totalPrice;

    /**
     * 总数量
     */
    private Integer totalCount;

    /**
     * 优惠金额
     */
    private BigDecimal discountAmount;

    /**
     * 运费金额
     */
    private BigDecimal freightAmount;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 支付方式	  1、微信小程序    
     */
    private String payMethod;

    /**
     * 支付时间
     */
    private LocalDateTime payTime;

    /**
     *  订单状态	1、已完成  2、待付款  3、待收货  4、待评价  5、售后 
     */
    private Integer orderStatus;

    private Integer createUserId;

    private LocalDateTime createTime;

    private Integer updateUserId;

    private LocalDateTime updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public Integer getDeliveryModeId() {
        return deliveryModeId;
    }

    public void setDeliveryModeId(Integer deliveryModeId) {
        this.deliveryModeId = deliveryModeId;
    }
    public Integer getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }
    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }
    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }
    public BigDecimal getDiscountAmount() {
        return discountAmount;
    }

    public void setDiscountAmount(BigDecimal discountAmount) {
        this.discountAmount = discountAmount;
    }
    public BigDecimal getFreightAmount() {
        return freightAmount;
    }

    public void setFreightAmount(BigDecimal freightAmount) {
        this.freightAmount = freightAmount;
    }
    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }
    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }
    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }
    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "OrderInfo{" +
        "id=" + id +
        ", mainUserId=" + mainUserId +
        ", orderNumber=" + orderNumber +
        ", deliveryModeId=" + deliveryModeId +
        ", merchantId=" + merchantId +
        ", totalPrice=" + totalPrice +
        ", totalCount=" + totalCount +
        ", discountAmount=" + discountAmount +
        ", freightAmount=" + freightAmount +
        ", payAmount=" + payAmount +
        ", payMethod=" + payMethod +
        ", payTime=" + payTime +
        ", orderStatus=" + orderStatus +
        ", createUserId=" + createUserId +
        ", createTime=" + createTime +
        ", updateUserId=" + updateUserId +
        ", updateTime=" + updateTime +
        "}";
    }
}
